package org.song.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.util.Date;

@ApiModel("用户评论实体")
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@Alias(value = "Comment")
public class Comment {

    @ApiModelProperty(value = "评论Id" , notes = "评论Id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty(value = "评论人" , notes = "评论人")
    private Long creatorId;

    @ApiModelProperty(value = "评论内容" , notes = "评论内容")
    private String content;

    @ApiModelProperty(value = "评论时间" , notes = "评论时间")
    private Date createTime;

    @ApiModelProperty(value = "评论博客Id" , notes = "评论博客Id")
    private Long blogId;

    @ApiModelProperty(value = "评论父Id" , notes = "评论父Id")
    private Long parentCommentId;

    @ApiModelProperty(value = "对应用户实例" , notes = "对应用户实例")
    private User user;
}
